﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddEdit.aspx.cs" Inherits="CardLogistics.Web.MainPage.Basic.FormatInfo.AddEdit" %>

<%@ Register Src="../../../Controls/WebUserControl_Nav.ascx" TagName="WebUserControl_Nav"
    TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>版面信息-编辑</title>
      <link href="../../../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../../../css/selPage.css" rel="stylesheet" type="text/css" />
    <script src="../../../js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="../../../js/valReq.js" type="text/javascript"></script>
    <script src="../../../js/jquery.js" type="text/javascript"></script>
    <script src="../../../js/jquery.tipswindow.2.0.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        function valReq() {
            var altStr = valid_isempty('FORMATNAME', '版面名称');
            altStr += valid_isempty('FORMATMODE', '印刷方式');
            altStr += valid_isempty_select('ddlSUPPID', '供应商');
            if (altStr != "") {
                alert(altStr);
                return false;
            }
            else {
                return true;
            }
        }
    </script>
</head>
<body>
    <form id="Form1" runat="server">
    <uc1:WebUserControl_Nav ID="WebUserControl_Nav1" runat="server" />
    <table class="theForm" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td class="titleTxt">
                版面名称：
            </td>
            <td colspan="3">
                <input id="FORMATNAME" runat="server" type="text" class="dfinputNoEmp" style="width: 90%;"
                    maxlength="25" />
            </td>
        </tr>
        <tr>
            <td class="titleTxt">
                印刷方式：
            </td>
            <td colspan="3">
                <input id="FORMATMODE" runat="server" type="text" class="dfinputNoEmp" maxlength="100"
                    style="width: 90%" />
            </td>
        </tr>
        <tr>
            <td class="titleTxt">
                所属供应商：
            </td>
            <td colspan="3">
               <select name="ddlSUPPID" id="ddlSUPPID" class="dfinputNoEmp" runat="server"   style="width: 90%" >
                </select>
            </td>
        </tr>
        <tr>
            <td class="titleTxt">
                版面附件：
            </td>
            <td colspan="3">
                <input id="file_FormatImage" type="file" name="file_piccard" runat="server" />
                <span style="vertical-align: middle; color: red;">(支持jpg、gif、bmp、jpeg、png格式，上传大小不要超过4MB)</span>
            </td>
        </tr>
        <tr id="tImg" runat="server" visible="false">
            <td class="titleTxt">
                附件显示：
            </td>
            <td colspan="3">
                <img id="attUrlImg" src="" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="titleTxt">
                状态：
            </td>
            <td colspan="3">
                <input id="STATUS" type="checkbox" runat="server" style="vertical-align: middle;" />
                <label for="Enabled" style="vertical-align: middle;">
                    禁用</label>
                <label style="vertical-align: middle; color: red;">
                    注意：禁用后，将不能显示。</label>
            </td>
        </tr>
        <tr>
            <td colspan="4" align="center">
                <asp:Button ID="btn_Add" CssClass="btn" runat="server" Text="保存" OnClientClick="return valReq();"
                    OnClick="btn_Add_Click" />
                <input type="button" class="btn" value="返回" onclick="javascript:history.go(-1);" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
